package com.sjgtw.cloud.web.path.mapper;

import com.sjgtw.cloud.web.path.domain.EmergencyPath;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 应急路径Mapper接口
 * 
 * @author lvyoufang
 * @date 2024-03-19
 */
public interface EmergencyPathMapper 
{
    /**
     * 查询应急路径
     * 
     * @param id 应急路径主键
     * @return 应急路径
     */
    public EmergencyPath selectEmergencyPathById(Long id);

    /**
     * 查询应急路径列表
     * 
     * @param emergencyPath 应急路径
     * @return 应急路径集合
     */
    public List<EmergencyPath> selectEmergencyPathList(EmergencyPath emergencyPath);

    /**
     * 新增应急路径
     * 
     * @param emergencyPath 应急路径
     * @return 结果
     */
    public int insertEmergencyPath(EmergencyPath emergencyPath);

    /**
     * 修改应急路径
     * 
     * @param emergencyPath 应急路径
     * @return 结果
     */
    public int updateEmergencyPath(EmergencyPath emergencyPath);

    /**
     * 删除应急路径
     * 
     * @param id 应急路径主键
     * @return 结果
     */
    public int deleteEmergencyPathById(Long id);

    /**
     * 批量删除应急路径
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEmergencyPathByIds(String[] ids);

    void deleteNotExist(@Param("upperId") Long upperId,@Param("ids") List<Long> ids);

    List<EmergencyPath> findByUpperIds(@Param("upperIds") List<Long> upperIds);
}
